import {request, storeAccessToken, deleteToken, takeAccessToken} from '@/utils/request';

export function login(data) {
    return request({
        url: '/api/auth/login',
        method: 'POST',
        params: data,
        // data: {
        //     username: data.username,
        //     password: data.password,
        //     remember: data.remember,
        // }
    })
}

export function logout(data) {
    return request({
        url: '/api/auth/logout',
        method: 'get',
        headers: {'Authorization': data}
    })
}
